<!DOCTYPE html>
<html>
#{include file="header.html"}#
<body class="gray-bg">
<div class="row">
  <div class="col-sm-9">
    <div class="wrapper wrapper-content animated fadeInUp">
      <div class="ibox">
        <div class="ibox-content">
          <div class="row">
            <div class="col-sm-10">
              <div class="m-b-md">
                <h2>订单编号：#{$one.order_no}#</h2>
              </div>
              
            </div>
			    <div class="col-sm-2"><span class="label label-primary"> 
						#{if $one.status eq '0'}# 待付款 #{/if}#
                  #{if $one.status eq '1'}# 待发货 #{/if}#
                  #{if $one.status eq '2'}# 待收货 #{/if}#
                  #{if $one.status eq '3'}# 待确认 #{/if}#
                  #{if $one.status eq '10'}# 已关闭 #{/if}#
                  #{if $one.status eq '11'}# 退款中 #{/if}# </span> </div>
          </div>
          <div class="row">
            <div class="col-sm-12">
						<div class="ibox-content ">
							<p><strong>创建时间：</strong>#{$one.adt}#</p>
							<p><strong>付款方式：</strong>#{if $one.pay_mode eq '0'}#线上支付#{else}# 线下支付 #{/if}#</p>
							<p><strong>购买会员：</strong>#{$one.buyer_member_name}#</p>
							<p><strong>购买IP：</strong>#{$one.adt}#</p>
							<p><strong>配送方式：</strong>#{if $one.send_mode eq '1'}#物流配送#{else}#无需物流#{/if}#</p>
							<p><strong>收货地址：</strong>#{$one.receiver_address}# #{$one.receiver_name}# #{$one.receiver_mobile}#</p>
							<p><strong>买家留言：</strong>#{$one.buyer_message}#</p>
							<p><strong>卖家备注：</strong>#{$one.remarks}#</p>
						</div>
            </div>
          </div>
          <div class="row m-t-sm">
            <div class="col-sm-12">
              <div class="panel blank-panel">
                <div class="panel-heading">
                  <div class="panel-options">
                    <ul class="nav nav-tabs">
                      <li class="active"><a href="project_detail.html#tab-1" data-toggle="tab" >购买商品</a> </li>
                      <li class=""><a href="project_detail.html#tab-2" data-toggle="tab">订单日志</a> </li>
                    </ul>
                  </div>
                </div>
                <div class="panel-body">
                  <div class="tab-content">
                    <div class="tab-pane active" id="tab-1">
                      <table class="table table-hover sorttable 07fly-table">
                        <thead>
                          <tr>
                            <th width="50">商品图片</th>
                            <th width="100">商品名称</th>
                            <th width="50"><span>价格</span></th>
                            <th width="50"><span>数量</span></th>
                            <th width="50"><span>调整金额</span></th>
                            <th width="50"><span>小计</span></th>
                            <th width="50">配送方式</th>
                          </tr>
                        </thead>
                        <tbody>                     
                        #{foreach from=$one.order_list key=k item=v}#
                        <tr>
                          <td>
							#{if $v.defaultpic eq ''}#
							  <img src="/upload/images/defaultpic.jpg" width="60" height="60">
							#{else}#
						  <img src="#{$v.defaultpic}#" width="60" height="60">
							#{/if}#
　　　　　　				
					
							
									</td>
                          <td><a href="/index.php/admin/GoodsOrder/goods_order_info/order_id/37/">#{$v.goods_name}#</a></td>
                          <td>#{$v.price}#</td>
                          <td>#{$v.num}#</td>
                          <td>#{$v.adjust_money}#</td>
                          <td>#{$v.goods_money}#</td>
                          <td width="10"></td>
                        </tr>
                        #{/foreach}#
                       </tbody>
						  		 <tfoot>
						  			<td colspan="7" class="text-right">
										<strong>商品总价：</strong>￥#{$one.goods_money}#&nbsp;&nbsp;
										<strong>实际支付：</strong><span class="text-danger">￥#{$one.pay_money}#</span>（含运费￥#{$one.shipping_money}#）
									 </td>
						  		</tfoot>
                        
                      </table>
                    </div>
                    <div class="tab-pane" id="tab-2"> 功能开发中。。。 </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="col-sm-3">
    <div class="wrapper wrapper-content project-manager">
      <h4><i class="fa fa-circle text-warning"></i> 订单状态：待发货</h4>
      <div class="m-t-md"> #{if $one.status eq '0'}# <a href="project_detail.html#" class="btn btn-xs btn-info">线下支付</a> <a href="project_detail.html#" class="btn btn-xs btn-info">关闭交易</a> <a href="project_detail.html#" class="btn btn-xs btn-info">修改价格</a> #{/if}#
        #{if $one.status eq '1'}# <a href="project_detail.html#" class="btn btn-xs btn-info">发货</a> <a href="project_detail.html#" class="btn btn-xs btn-info">修改地址</a> #{/if}#
        #{if $one.status eq '2'}# <a href="project_detail.html#" class="btn btn-xs btn-info">查看物流</a> <a href="project_detail.html#" class="btn btn-xs btn-info">确认收货</a> #{/if}#
        #{if $one.status eq '3'}# <a href="project_detail.html#" class="btn btn-xs btn-info">查看物流</a> #{/if}# <a href="project_detail.html#" class="btn btn-xs btn-info">备注</a> </div>
      <p > <br>
        07FLY商城提醒： </p>
      <p >如果无法发货，请及时与买家联系并说明情况后进行退款； </p>
      <p >买家申请退款后，须征得买家同意后再发货，否则买家有权拒收货物； </p>
      <p >买家付款后超过7天仍未发货，将有权申请客服介入发起退款维权； </p>
    </div>
  </div>
</div>

<!-- 全局js --> 
<script src="js/jquery.min.js?v=2.1.4"></script> 
<script src="js/bootstrap.min.js?v=3.3.6"></script> 

<!-- 自定义js --> 
<script src="js/content.js?v=1.0.0"></script> 
<script>
        $(document).ready(function () {

            $('#loading-example-btn').click(function () {
                btn = $(this);
                simpleLoad(btn, true)

                // Ajax example
                //                $.ajax().always(function () {
                //                    simpleLoad($(this), false)
                //                });

                simpleLoad(btn, false)
            });
        });

        function simpleLoad(btn, state) {
            if (state) {
                btn.children().addClass('fa-spin');
                btn.contents().last().replaceWith(" Loading");
            } else {
                setTimeout(function () {
                    btn.children().removeClass('fa-spin');
                    btn.contents().last().replaceWith(" Refresh");
                }, 2000);
            }
        }
    </script>
</body>
</html>
